package cn.kgc.fcm.dsbank.mapper;

import cn.kgc.fcm.dsbank.condition.CustomerCondition;
import cn.kgc.fcm.dsbank.entity.Customer;
import cn.kgc.fcm.dsbank.utils.Pager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CustomerMapper {

    List<Customer> selectCustomerAll(@Param("condition") CustomerCondition condition, @Param("pager") Pager pager);

    Customer selectCustomerById(Long customerId);
    
    int addCustomer(Customer customer);

    int selectCustomerCountByCondition(@Param("condition") CustomerCondition condition);
}
